package com.atguigu.gulimall.auth.feign.fallback;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.feign.ThirdPartyFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @create: 2024/9/5
 * @author: gyhe10
 * @description:
 **/

@Slf4j
@Component
public class ThirdPartyFeignServiceFallback implements ThirdPartyFeignService {
    @Override
    public R sendCode(String phone, String code) {
        log.error("远程调用 third-party 服务发送短信验证码失败，涉及手机号：{}", phone);
        return R.error("远程调用 third-party 服务发送短信验证码失败");
    }
}
